package cn.cdutetc.library.entity.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;

/**
 * 支付信息DTO
 */
@Data
@Schema(description = "支付信息DTO")
public class PaymentDTO {

    @NotNull(message = "用户ID不能为空")
    @Schema(description = "用户ID")
    private Integer userId;

    @Schema(description = "借阅记录ID")
    private Integer recordId;

    @NotNull(message = "支付方式不能为空")
    @Schema(description = "支付方式：alipay/wechat/cash")
    private String paymentType;

    @NotNull(message = "支付金额不能为空")
    @Positive(message = "支付金额必须大于0")
    @Schema(description = "支付金额")
    private java.math.BigDecimal amount;

}